﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using demo.Entity;

namespace demo.BLL
{
    public static class Context
    {
        public  const string CookieName = "CK";
        //当前用户
        public static Users user
        {
            get
            {
                return SessionHelper.GetSession("User") as Users;
            }
            set
            {
                if (value != null)
                {
                    SessionHelper.SetSession("User", value);
                }
            }
        }

    }
}
